﻿@model IEnumerable<shop.Mau>

@{
    ViewBag.Title = "Index";
}

<div id="content">
    <div id="content-header">
        <div id="breadcrumb"> <a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a></div>
    </div>
    <div class="container-fluid">

        <div class="widget-content">
            @Html.ActionLink("Thêm màu", "create", "mau", new { @class="btn btn-primary"})
            <table class="table table-bordered table-striped with-check">
                <thead>
                    <tr>
                        <th><input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" /></th>
                        <th>Tên màu</th>
                        <th>Hình</th>
                       
                        <th>Chức năng</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td><input type="checkbox" value="@item.Id" /></td>
                            <td>@item.TenMau</td>
                            <td>
                                <img width="75" src="/images/mau/@item.HinhAnh" />
                            </td>
                           
                            <td class="center">
                                <a class="btn btn-primary btn-mini">Sửa</a>
                                @Html.ActionLink("Xóa", "Delete", new { id = item.Id}, new { @class = "delete-link btn btn-danger btn-mini" })
                                
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="row-fluid">
    <div id="footer" class="span12"> 2012 &copy; Marutii Admin. Brought to you by <a href="http://themedesigner.in">Themedesigner.in</a> </div>
</div>
<div id="delete-dialog" title="Thông báo">
    <p>Bạn có muốn xóa màu này không</p>
</div>
@Html.Hidden("TrueString", Boolean.TrueString)
<div class="md-overlay"></div><!-- the overlay element -->
<script src="~/Content/themes/maruti/js/jquery.min.js"></script>
<script src="~/Content/themes/maruti/js/jquery.ui.custom.js"></script>
<script src="~/Content/themes/maruti/js/bootstrap.min.js"></script>
<script src="~/Content/themes/maruti/js/jquery.uniform.js"></script>
<script src="~/Scripts/jquery-ui-1.8.24.js"></script>
<script src="~/Content/themes/maruti/js/select2.min.js"></script>
<script src="~/Content/themes/maruti/js/jquery.dataTables.min.js"></script>
<script src="~/Content/themes/maruti/js/maruti.js"></script>
<script src="~/Content/themes/maruti/js/maruti.tables.js"></script>
<script src="~/Content/themes/maruti/js/mau.js"></script>
<script src="~/Scripts/knockout-2.2.0.js"></script> 